<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>RoubSite后台管理</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script type="text/javascript">
	var zTreeObj;
	var setting = {
			view : {
				dblClickExpand : false
			},
			data : {
				simpleData : {
						enable : true,
						idKey : "id",
						pIdKey : "pId",
						rootPId : 0
				}
			},
			callback : {
				beforeClick : function(treeId, treeNode) {
					var zTree = $.fn.zTree.getZTreeObj("organTree");
					if (treeNode.isParent) {
						zTree.expandNode(treeNode);
						showInfo(treeNode.id);
						return false;
					} else {
						showInfo(treeNode.id);
						return false;
					}
				}
			}
	};
</script>
<script src="{$__WEBPATH__}/static/common/js/roubSite.js"></script>
<script type="text/javascript">
	RS.webPath = '{$__WEBPATH__}';
</script>
<script src="{$__WEBPATH__}/static/common/js/import.js"></script>
<style type="text/css">
div#rMenu {
	position: absolute;
	visibility: hidden;
	top: 0;
	text-align: left;
	padding: 2px;
}

div#rMenu ul li {
	margin: 1px 0;
	padding: 0 5px;
	cursor: pointer;
	list-style: none outside none;
}
</style>
</head>
<body>


	<!--主要内容begin-->
	<script src="{$__WEBPATH__}/static/admin/security/user/listUserOrgan.js"></script>
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header">用户管理</div>
					<div class='layui-card-body'>
						<div class="layui-row layui-col-space15">
							<div class="layui-col-md2">
								<ul id="organTree" class="ztree"></ul>
							</div>
							<div class="layui-col-md10">
								<iframe id="infoIframe" src='about:blank' width="100%" height="100%" frameborder="0" onload="reinitIframe()"></iframe>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	function reinitIframe() {
		var iframe = document.getElementById("infoIframe");
		try {
			var bHeight = iframe.contentWindow.document.body.scrollHeight;
			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
			var height = Math.max(bHeight, dHeight);
			iframe.height = height;
		} catch (ex) {
			console.log(ex);
		}
	}
</script>
</body>
</html>

